package com.komon.constant;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Configuration {
	public static final int URL_MAX_LENGTH = 400;
	public static final String HTTP_VERSION = "1.1";
	public static final String CRLF = "\r\n";
	public static final String LWS = "(\r\n)?( |\t)+";
	public static final String DEFAULT_REQ_BODY_ENCODING = "ISO-8859-1";
	public static final String DEFAULT_RESP_BODY_ENCODING = DEFAULT_REQ_BODY_ENCODING;
	public static final int DEFAULT_RESP_BUFFER_SIZE = 1024 * 2;
	
	/*
	 * HTTP-date    = rfc1123-date | rfc850-date | asctime-date
       rfc1123-date = wkday "," SP date1 SP time SP "GMT"
       rfc850-date  = weekday "," SP date2 SP time SP "GMT"
       asctime-date = wkday SP date3 SP time SP 4DIGIT
       date1        = 2DIGIT SP month SP 4DIGIT
                      ; day month year (e.g., 02 Jun 1982)
       date2        = 2DIGIT "-" month "-" 2DIGIT
                      ; day-month-year (e.g., 02-Jun-82)
       date3        = month SP ( 2DIGIT | ( SP 1DIGIT ))
                      ; month day (e.g., Jun  2)
       time         = 2DIGIT ":" 2DIGIT ":" 2DIGIT
                      ; 00:00:00 - 23:59:59
       wkday        = "Mon" | "Tue" | "Wed"
                    | "Thu" | "Fri" | "Sat" | "Sun"
       weekday      = "Monday" | "Tuesday" | "Wednesday"
                    | "Thursday" | "Friday" | "Saturday" | "Sunday"
       month        = "Jan" | "Feb" | "Mar" | "Apr"
                    | "May" | "Jun" | "Jul" | "Aug"
                    | "Sep" | "Oct" | "Nov" | "Dec"
	 */
	public static final DateFormat dateFormater = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'");
	
}
